<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<button onclick="btn()">打开百度</button>
</body>
</html>

<script>
	// var res = confirm("您确定离开吗？")；
	// document.write(res)
	//返回值
	// var res1 = window.prompt("请输入词汇表三位数",100);
	// document.write(res1)
	
	function btn() {
		window.open("https://www.baidu.com/","my home","width=800,height=800");
	}
	
</script>
